Code debt cleanup
Over time, as experiments, segments, and goals accumulate, your testing environment can become cluttered, leading to inefficiencies and potential errors. Regularly reviewing and cleaning up outdated elements is essential to maintaining a streamlined, high-performing Kameleoon setup. This article outlines the key steps to identifying and removing obsolete experiments, segments, and code to reduce technical debt, improve accuracy, and ensure a smoother workflow for your optimization efforts.
Debt cleanup is a time investment that pays off. Taking the time to clean up technical debt—whether it's outdated experiments, unused segments, or unnecessary code—greatly improves performance in the long run.
Before implementing the actions listed below, ensure you save a performance benchmark of your website, so you can measure the improvements afterward.
- 🧪 Use PageSpeed Insights (or any other performance analysis tool you’re comfortable with) to analyze your site (desktop and mobile). Once the report is generated, click Copy Link (top-right)—this will save the report with data from the exact day of analysis (See screenshot below).
- 🧩 Use the Kameleoon Chrome Extension to check performance and the size of experiments segments, goals, custom data and custom scripts. See screenshot below.
Once you’ve completed the cleanup actions below, run both analyses above again and compare the results to see the impact of your optimizations.
1. Web experiments/personalizations
On the Experiments page:
Delete outdated draft experiments
Use the menu on the right to filter for draft experiments, then delete all experiments older than three months (use the key date filter), along with recent ones you no longer need. To do this:
- Right-click an experiment's three-dots menu and click "Select".
- Click "Select all experiments" above.
- Choose "Delete" from the right menu. Alternatively, you can Archive them.
Stop paused experiments
Filter for paused experiments, then stop all experiments older than three months and any recent experiments you’re certain won’t be relaunched. Since bulk selection isn’t available for stopping experiments, you must manually select them one by one and click Stop in the right menu.